Translation lookaside buffer purging with concurrent cache updates

ABSTRACT

A method and computer processor performs a translation lookaside buffer (TLB) purge with concurrent cache updates. Each cache line contains a virtual address field and a data field. A TLB purge process performs operations for invalidating data in the primary cache memory which do not conform to the current state of the translation lookaside buffer. Whenever the TLB purge process and a cache update process perform a write operation to the primary cache memory concurrently, the write operation by the TLB purge process has no effect on the content of the primary cache memory and the cache update process overwrites a data field in a cache line of the primary cache memory but does not overwrite a virtual address field of said cache line. The translation lookaside buffer purge process is subsequently restored to an earlier state and restarted from the earlier state.

BACKGROUND OF THE INVENTION

Modern computer processors typically provide support for virtual memory.In a computer processor which utilizes virtual memory, a virtual addressis a memory address which does not point to a physical memory address.Instead, the virtual address first needs to be translated into aphysical memory address before data on a physical device can beaccessed. Virtual memory facilitates application programming because ithides fragmented physical memory addresses from computer applications.Memory management usually employs a page table which serves to translatevirtual addresses into physical addresses. Because access to the pagetable is comparatively slow, virtual addresses which have been recentlyaccessed are stored in a translation lookaside buffer. A translationlookaside buffer is a type of cache memory which allows for quick dataretrieval. When data is to be read from or written to a virtual memoryaddress, a computer processor may initially access its translationlookaside buffer. The translation lookaside buffer returns a physicaladdress which corresponds to the virtual address. Data which is storedat the physical address may then be accessed.

Modern computer processors typically feature at least one cache memoryother than a translation lookaside buffer. Such a cache memory does notstore virtual memory addresses, but instead mirrors data which is storedin a main memory of a computer system. Because access to the main memoryis comparatively slower than access to the cache memory, it ispreferable if data can be retrieved from the cache memory. Computerprocessors typically feature a cache hierarchy with multiple cachememories. In order to allow quick access to its cache memory without theneed to translate a virtual memory address into a physical memoryaddress, the data in some cache memories may be tagged by means ofvirtual addresses instead of physical addresses.

During normal system operation, the data contained within thetranslation lookaside buffer may become outdated, for instance becauseof a context switch of a user application. The information for addresstranslation which is stored in the translation lookaside buffer maytherefore become invalid. This also means that address information whichis currently stored in any cache memory that employs virtual addressesin order to identify data may now also be invalid. Therefore, any suchentries in the cache memory may now have to be invalidated. The processof invalidation of a cache memory is called a translation lookasidebuffer purge. It invalidates entries in the cache memory which containoutdated and therefore incorrect virtual addresses.

However, when a translation lookaside buffer purge is started, there maystill remain data which is queued to be written into the cache memory.For instance, this may be data which is currently being requested fromanother data cache within the cache hierarchy. For instance, supposingthat a processor has a level one cache, a level two cache and a levelthree cache, when data is requested from the level three cache and thereis a cache hit in the level three cache, then the data which has beensuccessfully retrieved from the level three cache may also be storedinto the level one cache and into the level two cache by an updateprocess. This ensures that the level one cache and the level two cachealways contain data which has been read recently from the level threecache. However, when a translation lookaside buffer purge is activeconcurrently to said update process, then update operations which areperformed by the update process may conflict with operations forperforming the translation lookaside buffer purge. For instance, virtualaddresses which have been successfully invalidated by the translationlookaside buffer purge may be overwritten by the update processafterwards. As a result, the level one cache may contain invalid virtualaddress information after the translation lookaside buffer purge hasbeen completed. Additionally, cache memories usually do not allowsimultaneous write access by multiple processes.

A common way to avoid the aforementioned problems is to wait for allrequests to the level three cache and the corresponding updateoperations to complete before the translation lookaside buffer purgeprocess is started. However, this usually causes a high delay becauseaccessing the level three cache memory has a comparatively high accesslatency. Typically, the access latency of any request to the level threecache is higher than the amount of time required to perform the completetranslation lookaside buffer purge. Therefore, waiting for all updateoperations to complete has the disadvantage that it requires a longamount of time. Alternatively, the purge operation may be startedimmediately, discarding all pending requests to the level three cache.However, in this case, responses from the level three cache are lost andthe same requests have to be issued again at a later time. This causes adelay after the purge operation. Additionally, in a multicore processor,multiple cores which run different threads may make use of the samecache hierarchy. In many cases, only the virtual addresses whichcorrespond to one thread running on one processor core of a computerprocessor have to be updated. Therefore, only these addresses aresubject to a translation lookaside buffer purge. The method aspreviously described has the disadvantage that threads running ondifferent cores are effectively blocked if their requests to the levelthree cache are discarded.

SUMMARY

The present invention relates to a method for performing a translationlookaside buffer purge with concurrent cache updates in a computersystem with a translation lookaside buffer and a primary cache memoryhaving multiple cache lines. Each cache line contains a virtual addressfield and a data field. The method includes a translation lookasidebuffer purge process. The translation lookaside buffer purge processperforms operations for invalidating data in the primary cache memorywhich do not conform to the current state of the translation lookasidebuffer. The method also includes a cache update process. Whenever thetranslation lookaside buffer purge process and the cache update processeach perform a write operation to the primary cache memorysimultaneously, the write operation by the translation lookaside bufferpurge process has no effect on the content of the primary cache memoryand the cache update process overwrites a data field in a cache line ofthe primary cache memory but does not overwrite a virtual address fieldof said cache line. The translation lookaside buffer purge process issubsequently restored to an earlier state and restarted from saidearlier state.

The present invention also relates to a computer processor with atranslation lookaside buffer and a primary cache memory with multiplecache lines. Each cache line contains a virtual address field and a datafield, and the computer processor contains a purge unit which isconfigured to perform a translation lookaside buffer purge process. Thepurge unit is configured to perform operations for invalidating data inthe primary cache memory which do not conform to the current state ofthe translation lookaside buffer. Additionally, the computer processorcontains an update unit for performing a cache update process. Thecomputer processor is configured such that, whenever the translationlookaside buffer purge process and the cache update process each performa write operation to the primary cache memory simultaneously, the writeoperation by the translation lookaside buffer purge process has noeffect on the content of the primary cache memory. An arbitration unitin the computer processor is configured such that, whenever thetranslation lookaside buffer purge process and the cache update processeach perform a write operation to the primary cache memorysimultaneously, it is ensured that the cache update process overwrites adata field in a cache line of the primary cache memory but does notoverwrite a virtual address field of said cache line. The purge unit isconfigured to restore the translation lookaside buffer purge process toan earlier state and to restart the translation lookaside buffer purgeprocess if the translation lookaside buffer purge process and the cacheupdate process each perform a write operation to the primary cachememory simultaneously.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a data flow diagram of a computer processor according tothe present invention;

FIG. 2 illustrates the structure of cache lines in a level one cache ofa computer processor according to an embodiment of the invention;

FIG. 3 illustrates the structure of a response table according to anembodiment of the invention;

FIG. 4 illustrates how a translation lookaside buffer purge process maybe performed according to an embodiment of the invention;

FIG. 5 illustrates how conflicts between a translation lookaside bufferpurge process and a cache update process can be resolved according to anembodiment of the invention;

FIG. 6 is a flowchart showing a method for performing a translationlookaside buffer purge with concurrent cache updates according to anembodiment of the invention;

FIG. 7 is a flowchart showing a method for performing a translationlookaside buffer purge with concurrent cache updates according anembodiment of the invention;

FIG. 8 shows a digital timing diagram of both the REQ and the GNT signalaccording to an embodiment of the invention; and

FIG. 9 is a block diagram depicting components of a computer, inaccordance with at least one embodiment of the present invention.

DETAILED DESCRIPTION

The present invention relates to a method for performing a translationlookaside buffer purge with concurrent cache updates in a computersystem with a translation lookaside buffer and a primary cache memoryhaving multiple cache lines. Each cache line contains a virtual addressfield and a data field. The method includes a translation lookasidebuffer purge process. The translation lookaside buffer purge processperforms operations for invalidating data in the primary cache memorywhich do not conform to the current state of the translation lookasidebuffer. The method also includes a cache update process. Whenever thetranslation lookaside buffer purge process and the cache update processeach perform a write operation to the primary cache memorysimultaneously, the write operation by the translation lookaside bufferpurge process has no effect on the content of the primary cache memoryand the cache update process overwrites a data field in a cache line ofthe primary cache memory but does not overwrite a virtual address fieldof said cache line. The translation lookaside buffer purge process issubsequently restored to an earlier state and restarted from saidearlier state.

An advantage of this method is that the translation lookaside bufferpurge process and the cache update process may run concurrently. It istherefore not necessary to wait for the cache update process to completebefore the translation lookaside buffer purge process is started.Whenever a cache update operation of the cache update process writesdata to a cache line of the primary cache memory, it is ensured that thevirtual address field of the primary cache memory is not overwritten.Therefore, if the cache update operation performs a write operation to acache line which has previously been invalidated by the translationlookaside buffer purge process, the invalidated virtual address fieldwill not be overwritten by a virtual address which is potentiallyinvalid. However, data will be written to the data field of the cacheline even if the translation lookaside buffer purging process is active.This is because an invalidation of virtual addresses does notnecessarily mean that the data stored at said virtual addresses is alsoinvalid. Therefore, it is desired that data is written into the datafields of the cache lines no matter whether the corresponding virtualaddresses have meanwhile become invalid or not.

Additionally, the method causes the translation lookaside buffer purgeprocess to be restored to an earlier state whenever the translationlookaside buffer purge process and the cache update process each performa write operation to the primary cache memory simultaneously. Writeoperations of the cache update process may take precedence over writeoperations of the translation lookaside buffer purge process. This meansa write operation of the translation lookaside buffer purge processcannot be performed correctly if a write operation by the cache updateprocess is performed at the same time. According to the presentinvention, the translation lookaside buffer purge process is thereforerestored to a previous state if such a collision occurs. At least oneoperation of the translation lookaside buffer purge process is thenexecuted again so that any errors which may have been caused by theconflict of the write operations can be rectified.

The cache update process may store responses from another cache memoryinto the primary cache memory. However, according to other embodiments,the data which is stored into the primary cache memory must notnecessarily stem from a response by another cache memory, but may alsohave any other source. Therefore, the present invention is suitable forperforming a translation lookaside buffer purge while any type of cacheupdate process is active concurrently.

According to an embodiment of the invention, the primary cache memorymay be a level one cache. The primary cache memory may be adirect-mapped cache, a two way associative cache, a fully associativecache, or it may have any other type of associativity. The virtualaddress field may be a field dedicated to storing a virtual address or atag derived from a virtual address. This means that the virtual addressfield may store only part of a virtual address. In addition to thevirtual address field and the data field, each cache line may containany number of additional fields. For instance, the data field mayinclude one or more flag fields. Each cache line may also include afield for storing an error correction code. It is advantageous if theabove-mentioned method is performed by computer processor with a cachehierarchy which includes a level one cache as its primary cache, a leveltwo cache, and a level three cache. The cache update process may be anyprocess which overwrites at least one cache line of the primary cachememory. Write operations of the cache update process may be triggeredwhen information from a system memory, for instance from a cache memoryother than the primary cache memory, have been successfully retrieved.However, operations of the cache update process may also be triggered inany other manner.

According to an embodiment of the invention, the translation lookasidebuffer purge process may be started by a memory management unit.According to another embodiment of the invention, the translationlookaside buffer purge process may be triggered by an update ofinformation contained within a page table. According to an embodiment ofthe invention, the translation lookaside buffer purge process may bestarted at any time regardless of whether a cache update process iscurrently active and regardless of whether any requests for data fromany cache memory are currently active. According to some embodiments ofthe invention, the translation lookaside buffer purge process may purgean entry in a cache line by overwriting the virtual address field insaid cache line with a certain value. For example, the virtual addressfield may be overwritten by zeroes. According to another embodiment ofthe invention, the invalidation may be achieved by setting a designatedfield in a cache line to a certain value.

According to some embodiments of the present invention, the translationlookaside buffer purge process includes reading data from a cache line,evaluating whether said cache line has to be invalidated andinvalidating said cache line if necessary. In a first step, data is readfrom the cache line. Said data may include data from the virtual addressfield and/or data from the data field in the cache line. It is thendetermined whether said cache line has to be invalidated. For instance,it may be evaluated whether the virtual address field contains a virtualmemory address or part of a virtual memory address which is no longervalid. In this case, the cache line has to be invalidated. If theevaluation has determined that an invalidation of the contents of thecache line is necessary, data may be written to the cache line in orderto perform the invalidation. The steps of reading data from the primarycache memory and writing data to the primary cache memory may beperformed during different clock cycles. Between the steps of readingdata from a cache line of the primary memory and writing data to saidcache line, there may lie one or multiple clock cycles. According tosome embodiments of the invention, the translation lookaside bufferpurge process may iterate over all or over at least some of the cachelines in the primary cache memory. According to another embodiment ofthe invention, the translation lookaside buffer purge process mayselectively seek out certain cache lines and invalidate them ifnecessary. It is also possible that the operations of the translationlookaside buffer purge process follow any other pattern in order toread, evaluate, and invalidate cache lines in the primary cache memory.

A method according to the present invention may be executed such thatthe translation lookaside buffer purge process is pipelined andsimultaneously reads data from and writes data to different cache lines.This embodiment has the advantage that it allows for an overall fasterexecution of the translation lookaside buffer purge process. Forinstance, a pipelined process may simultaneously read data from a firstcache line in the primary memory, evaluate data which has already beenread from a second cache line in the primary memory, and write data to athird cache line in the primary memory if required, invalidating theentry in said third cache line. According to this embodiment of theinvention, the translation lookaside buffer purge process iterates aread-evaluate-write window over the whole or over parts of the primarycache memory. A read pointer may point to a location in the primarymemory which is currently being read from. A write pointer may point toa cache line which is currently being written to. After a clock cyclehas completed, the read pointer and the write pointer may beincremented. According to some embodiments of the invention, theread-evaluate-write window has a size of two cache lines, wherein afirst cache line is being read and a second cache line is being writtento. According to another embodiment of the invention, theread-evaluate-write window has a size of three cache lines, wherein afirst cache line is being read to, a second cache line has been readfrom in a previous clock cycle and will be written to in subsequentclock cycle, and a third cache line is currently being written to.According to other embodiments of the invention, the write window mayhave a size larger than three cache lines, wherein multiple cache lineswithin the window have already been read and are scheduled to beinvalidated by the translation lookaside buffer purge process.

According to an embodiment of the invention, the translation lookasidebuffer purge process is restored to the earlier state by setting a valueof a read pointer of the translation lookaside buffer purge process to avalue of the write pointer of the translation lookaside buffer purgeprocess. Whenever a cache update process writes data to the primarycache memory, this may interfere with the translation lookaside bufferpurge process. This is because write operations by the cache updateprocess take precedence over write operations by the translationlookaside buffer purge process.

In order to avoid this problem, a read pointer of the translationlookaside buffer purge process may be reset to point to the cache linewhich the write pointer of the translation lookaside buffer waspreviously set to. This effectively causes a rollback of the translationlookaside buffer purge operation to a previous state. However, thetranslation lookaside buffer purge process is not started completelyanew, i.e., this has the advantage that the translation lookaside bufferpurge process does not have to be applied to the complete primary cachememory again. Instead, only a few relevant cache lines are reevaluated.This method is particularly suitable if it is applied in conjunctionwith a pipelined translation lookaside buffer purge process as describedabove.

According to another embodiment of the invention, outstanding writeoperations of the cache update process are stored as entries in aresponse table. At least one entry in the response table is marked whenthe translation lookaside buffer purge process is started, and the cacheupdate process does not overwrite the virtual address field of a cacheline if the entry of the corresponding write operation has been marked.This embodiment allows for an easy way to track whether write operationsby the cache update process are executed at the same time as writeoperations by the translation lookaside buffer purge process. Theresponse table may store information regarding write operations whichare outstanding because data corresponding to said entries have not yetbeen read from another computer memory. For instance, the response tablemay contain read requests to another cache memory of the computerprocessor. According to an embodiment of the invention, the other cachememory of the computer processor may be a level two cache or a levelthree cache. Once the other computer memory has been accessed and datahas been successfully retrieved from the other computer memory, saiddata can be stored into the primary cache memory by the cache updateprocess. When the translation lookaside buffer purge process is running,it is important that the virtual address fields in the primary cachememory are not overwritten. Therefore, at least one entry in theresponse table is marked. According to an embodiment of the invention,each entry in the response table features a purge field. This purgefield may be set in order to mark an entry. During the cache updateprocess, it may then be checked whether the purge field of an entry inthe response table has been set, and if this is the case, the virtualaddress field in the corresponding cache line of the primary memory isnot overwritten by the cache update process.

According to an embodiment of the invention, all entries in the responsetable are marked when the translation lookaside buffer purge process isstarted. According to another embodiment of the invention, entries inthe translation lookaside buffer purge process are marked selectively.Selective marking may be achieved according to criteria retrieved fromthe translation lookaside buffer and/or a page table and/or a memorymanagement unit. According to some embodiments of the invention, no newentries may be added to the response table while a translation lookasidebuffer purge process is active. According to an embodiment of theinvention, this means that no further data may be scheduled to be readfrom the other computer memory, which may be a level two cache or alevel three cache. In this case, only the requests which are currentlystored in the response table will be processed during the translationlookaside buffer purge process. According to another embodiment of theinvention, it is also possible that further entries are added to theresponse table while the translation lookaside buffer purge process isstill running. These subsequently added entries may then be markedimmediately after they have been added to the response table.

According to another embodiment of the invention, the cache updateprocess may include updating a secondary cache memory, and whenever eachthe translation lookaside buffer purge process and the cache updateprocess perform a write operation to the primary cache memorysimultaneously, the cache update process overwrites a data field in acache line of the secondary cache memory, but does not overwrite anaddress field in said cache line. This has the advantage that thesecondary cache memory can be updated according to the same principlesas the primary cache memory. According to an embodiment of theinvention, said secondary cache memory is a level two cache. Each cacheline of said level two cache may contain at least an address field and adata field. The address field may store a physical address or part of aphysical address. According to this embodiment of the invention, theaddress field of the secondary cache memory shall not be overwritten bythe cache update process if the physical address is possibly invalid. Inorder to determine whether the address field of a cache line should beoverwritten, the method may involve checking whether a correspondingentry in the response table has been marked. According to someembodiments of the invention, this check may involve determining whethera purge field of that entry in the response table has been set.

According to another embodiment of the invention, the cache updateprocess retrieves data which is to be written to the primary cachememory from a tertiary cache memory. The tertiary cache memory may be alevel three cache. The cache update process may also retrieve data whichis to be written to the primary cache memory from any other source. Datamay be retrieved from the tertiary cache memory and then be provided tothe cache update process as well as further data sinks. Such a furtherdata sink may be a CPU core which has initially requested the data fromthe tertiary cache memory. The tertiary cache memory may be accessed byusing a response table as described above.

According to another embodiment of the invention, a purge unit handlesthe translation lookaside buffer purge process and notifies anarbitration unit if the translation lookaside buffer purge process isactive. The arbitration unit may be responsible for coordinating accessto the primary cache memory. The purge unit is not necessarilyrestricted to one area of a computer processor. Its functionality mayalso be distributed over various parts of the device or implemented bydifferent components. The same applies to the arbitration unit.According to an embodiment of the invention, while the purge unitnotifies the arbitration unit, the arbitration unit shall prevent datafrom being written to virtual address fields in the primary and/or thesecondary cache memory. Alternatively or additionally, the arbitrationunit may notify the purge unit if an access conflict to the primarycache memory has occurred between the translation lookaside buffer purgeprocess and the cache update process. For instance, the purge unit maybe connected to the arbitration unit via a signal line REQ. According tothis example, the value ‘1’ is emitted to signal line REQ by the purgeunit if a translation lookaside buffer purge process is active and thepurge unit shall emit the value ‘0’ if no translation lookaside bufferpurge process is currently active. The purge unit may also be connectedto the arbitration unit over a signal line GNT. According to anembodiment of the invention, the arbitration unit shall always setsignal line GNT to a value of ‘1’ as long as the purge unit signals thatthe translation lookaside buffer purge process is active, except whenthere is a conflict between the translation lookaside buffer purgeprocess and a cache update process. In case of such a conflict, thearbitration unit shall set signal line GNT to a value of ‘0’. Thisindicates to the purge unit that the translation lookaside buffer purgeprocess has to be restored to a previous state.

According to another embodiment of the invention, a purge unit handlesthe translation lookaside buffer purge process and marks at least oneentry in a response table that stores outstanding write operations ofthe cache update process, and the cache update process does notoverwrite the virtual address field of a cache line if the entry of thecorresponding write operation has been marked. The purge unit may markthe at least one entry in the response table when the translationlookaside buffer purge process is started. According to otherembodiments of the invention, the purge unit may also mark the entriesin the response table at a later time during the translation lookasidebuffer purge process. The response table may be a response table as hasbeen described above. According to some embodiments of the invention,the purge unit is connected to the response table and is responsible forsetting purge fields in the response table. According to an embodimentof the invention, the purge unit may be configured such that itindiscriminately sets the purge fields of all entries in the responsetable when the translation lookaside buffer purge process is started.According to another embodiment of the invention, the purge unit may setpurge field of entries in the response table selectively. For thispurpose, entries in the response table may first be read, their contentmay be evaluated and the purge fields may then be set according to theresult of the evaluation. Setting a field may involve changing the valueof this field to a certain value.

The present invention also relates to a computer processor with atranslation lookaside buffer and a primary cache memory with multiplecache lines. Each cache line contains a virtual address field and a datafield, and the computer processor contains a purge unit which isconfigured to perform a translation lookaside buffer purge process. Thepurge unit is configured to perform operations for invalidating data inthe primary cache memory which do not conform to the current state ofthe translation lookaside buffer. Additionally, the computer processorcontains an update unit for performing a cache update process. Thecomputer processor is configured such that, whenever the translationlookaside buffer purge process and the cache update process each performa write operation to the primary cache memory simultaneously, the writeoperation by the translation lookaside buffer purge process has noeffect on the content of the primary cache memory. An arbitration unitin the computer processor is configured such that, whenever thetranslation lookaside buffer purge process and the cache update processeach perform a write operation to the primary cache memorysimultaneously, it is ensured that the cache update process overwrites adata field in a cache line of the primary cache memory but does notoverwrite a virtual address field of said cache line. The purge unit isconfigured to restore the translation lookaside buffer purge process toan earlier state and to restart the translation lookaside buffer purgeprocess if the translation lookaside buffer purge process and the cacheupdate process each perform a write operation to the primary cachememory simultaneously. According to an embodiment of the invention, theprimary cache memory has only one write port and the computer processorcontains logic which is configured such that write operations by thecache update process take precedence over write operations by thetranslation lookaside buffer purge process. The computer processoraccording to the present invention has the advantage that a translationlookaside buffer purge process and a cache update process can be runsimultaneously. It is therefore not necessarily to wait for the cacheupdate process to complete before the translation lookaside buffer purgeprocess is started.

According to an embodiment of the invention, the purge unit of thecomputer processor is configured to read data from a cache line in theprimary cache memory, to evaluate whether said cache line has to beinvalidated and to invalidate said cache line if necessary. The purgeunit may be connected to the primary cache memory via a data bus or viaa direct data connection. The purge unit may be configured such that itcan receive an external command which triggers a translation lookasidebuffer purge. In order to be able to determine which entries in atranslation lookaside buffer of the computer processor have to bepurged, the purge unit may have read and/or write access to saidtranslation lookaside buffer.

According to another embodiment of the invention, the purge unit may beconfigured to simultaneously read data from and write data to differentcache lines in a pipelined manner. The purge unit may write data to theprimary cache memory in order to invalidate a cache line in the primarycache memory. In some embodiments of the present invention, the purgeunit is configured such that it iterates over cache lines in the primarycache memory, reading and subsequently invalidating each cache line ifrequired. During the translation lookaside buffer purge process, a readdata pointer may point to a cache line in the primary cache memory whichis currently being read by the purge unit, and a write data pointer maypoint to a cache line in the primary cache memory which is currentlybeing invalidated by the purge unit. According to some embodiments ofthe invention, the purge unit restores the translation lookaside bufferpurge process by setting a value of a read pointer of the translationlookaside buffer purge process to a value of a write pointer of thetranslation lookaside buffer purge process.

According to some embodiments of the invention, outstanding writeoperations of the cache update process are stored as entries in aresponse table, and the computer system is configured such that at leastone entry is marked when the translation lookaside buffer purge processis started, and the computer system is configured such that the cacheupdate process does not overwrite the virtual address field of a cacheline if the entry of the corresponding write operation has been marked.In some embodiments of the present invention, all entries in theresponse table are marked when the translation lookaside buffer purgeprocess is started. The cache update process may transfer data which hasbeen recently read from another computer memory to the primary cachememory. Said other computer memory is preferably a cache memory. Inparticular, said other computer memory may be a level two cache or alevel three cache. When the content of a memory location in the othercomputer memory has been retrieved, the update unit writes the contentto the primary cache memory.

According to another embodiment of the invention, the update unit isconfigured such that the update process includes updating a secondarycache memory, and the update unit and the arbitration unit areconfigured such that whenever the translation lookaside buffer purgeprocess and the cache update process each perform a write operation tothe primary cache memory simultaneously, the cache update processoverwrites a data field in a cache line of the secondary cache memorybut does not overwrite an address field of said cache line. Thesecondary cache memory may be a level two cache. According to someembodiments of the invention, the update unit may check whether thecorresponding entry in the response table has been marked. If thecorresponding entry has been marked, then the update unit onlyoverwrites a data field in a cache line of the primary cache memory. Inthis case, the update unit does not overwrite a virtual address field ofsaid cache line.

According to another embodiment of the invention, the update unit isconfigured such that the cache update process retrieves data which is tobe written to the primary cache memory from a tertiary cache memory. Thetertiary cache memory may be a level three cache. The update unit may beconnected to the tertiary cache memory over a data bus. According tosome embodiments of the invention, the computer processor may have alevel one cache, a level two cache, and a level three cache. All thesecaches may be connected to one system cache bus. In addition, thetranslation lookaside buffer of the computer processor may be connectedto said bus. The computer processor may be a simultaneous multithreadingsystem with at least two cores, all of which are connected to the samecache hierarchy featuring a level one cache, a level two cache and alevel three cache.

According to an embodiment of the invention, the purge unit isconfigured to notify the arbitration unit if the translation lookasidebuffer purge process is active. According to this embodiment, the purgeunit may be connected to the arbitration unit over a signal line. Oncethe purge process is started, the purge unit may change its output tothe signal line. This indicates to the arbitration unit that thetranslation lookaside buffer purge process is currently underway. Whenthe translation lookaside buffer purge process has finished, the purgeunit changes its output to the signal line, which indicates to thearbitration unit that the translation lookaside buffer purge process hasbeen stopped. The information that the translation lookaside bufferpurge process has been stopped may be communicated to the arbitrationunit over a dedicated signal line or over a system bus which connectsthe purge unit and the arbitration unit.

According to an embodiment of the invention, the arbitration unit isconfigured to notify the purge unit if there has been a conflict betweenthe translation lookaside buffer purge process and the cache updateprocess. According to an embodiment of the invention, the conflictoccurs whenever both the translation lookaside buffer purge process andthe cache update process simultaneously request to write data into theprimary cache memory. A corresponding notification may be transmittedover a dedicated signal line or over a system bus. According to anembodiment of the invention, the arbitration unit may control whetherthe cache update process can overwrite virtual address fields of theprimary cache memory.

According to another embodiment of the invention, the purge unit isconfigured to mark at least one entry in a response table which storesoutstanding write operations of the cache update process, and anarbitration unit is configured to ensure that the virtual address fieldof a cache line is not overwritten if the entry of the correspondingwrite operation has been marked. For instance, the purge unit may markall entries in the response table. According to another embodiment ofthe invention, the response table may mark entries in response tableselectively according to the state of the translation lookaside buffer,according to the state of a page table of the computer processor oraccording to any other criterion. Each line in the response table maycontain a dedicated purge field which is intended for marking said line.Such a purge field may be set in order to mark an entry in a line of theresponse table. When data which corresponds to the entry in said line issupposed to be written to the primary cache memory, the arbitration unitmay then refer to the response table in order to determine if the purgefield has been set. If this is the case, the arbitration unit will notoverwrite the virtual address field in the cache line.

Referring now to the drawings, FIG. 1 shows a data flow diagram of acomputer processor according to the present invention. The computerprocessor has a level one cache 101, a level two cache 102, and a levelthree cache 103. It also features an arbitration unit 104 and a purgeunit 105. A data pathway 106 leads from the level three cache 103 to thelevel one cache 101 and the level two cache 102. The data pathway 106transmits data to the level one cache 101 and to the level two cache102. Said data is thereby written into data fields within cache lines ofthe level two cache 102 and of the level three cache 103. Said data iswritten into the data fields of the level two cache 102 and the levelthree cache 103 no matter whether a translation lookaside buffer purgeprocess is currently active. This ensures that data which has beenrecently read from the level three cache 103 is also made available tothe level one cache 101 and the level two cache 102.

Apart from the data pathway 106, there is also an address pathway 107which transmits address data from the level three cache 103 to amultiplexer 108, which is not an actual unit in the system but merelyserves to illustrate how dataflow in the system is controlled. Thoseskilled in the relevant arts will readily appreciate how to implementthe functionality of multiplexer 108 in hardware. There is also a purgepathway 109 which leads from the purge unit 105 to the multiplexer 108.The purge unit 105 may perform a translation lookaside buffer purgeprocess, invalidating cache lines in the level one cache 101 over thepurge pathway 109. The arbitration unit 104 retrieves information from aresponse table 110. The response table 110 contains information withregard to data which is being transmitted from the level three cache 103over the data pathway 106 and the address pathway 107. If the addressdata which is currently being transmitted to the multiplexer 108corresponds to an entry in the response table 110 which has been marked,then the address data is not stored into cache lines of the level onecache 101 and of the level two cache 102. If the address data which iscurrently being transmitted to the multiplexer 108 corresponds to anentry in the response table 110 which has not been marked, then theaddress data is stored into the level one cache 101 and into the leveltwo cache 102. The arbitration unit 104 controls the multiplexer 108over a control pathway 111.

It should be noted that while a virtual address or part of a virtualaddress can be stored into an address field of a cache line of the levelone cache 101, only physical addresses are stored in address fields ofthe level two cache 102. For this purpose, a virtual address may firsthave to be converted into a physical address, or vice versa. If thepurge unit is currently conducting a translation lookaside buffer purgeprocess, then the purge unit may invalidate data over the purge pathway109. It is also possible that an invalidation operation takes place atthe same time as a cache update operation of a cache update process. Inthis case, the cache update operation takes precedence and theinvalidation operation cannot be carried out.

The arbitration unit 104 and the purge unit 105 are connected by a GNTpathway 112 and a REQ pathway 113. The REQ pathway serves to indicate tothe arbitration unit that a translation lookaside buffer purge processis currently underway. The GNT pathway serves to indicate to the purgeunit that a collision has occurred between an invalidation operation anda purge operation. Both pathways may be implemented as signal lines.

FIG. 2 illustrates the structure of the cache lines 201 in a level onecache 202 of a computer processor according to an embodiment of theinvention. Four cache lines 201 out of a larger number of cache lines ina level one cache 202 are shown. The level one cache 202 is suitable forstoring data which can be quickly accessed by a CPU core. In each cacheline 201, the level one cache 202 features a virtual address field 203,a data field 204, and a valid field 205. The virtual address field 203in each line is supposed to store a virtual address or part of a virtualaddress as a tag. The data field 204 is intended to store data for quickaccess. When the data from the data field is supposed to be accessed, avirtual address or part of a virtual address is transmitted to the cache202 and compared to the content in each or at least some of the virtualaddress fields 203. This allows to determine whether the level one cache202 contains the desired data and to retrieve said data. The valid field205 indicates whether the data in a certain cache line 201 is stillvalid, or whether the corresponding virtual address has already beeninvalidated. According to other embodiments of the invention, each cacheline 201 may also include further fields. For instance, each cache line201 may also contain a field for holding an error correction code or apurge information field which stores information that is relevant to atranslation lookaside buffer purge process.

FIG. 3 illustrates the structure of a response table 301 according to anembodiment of the invention. The response table 301 stores pendingrequests to a level three cache. It contains multiple cache lines 302.Each cache line 302 features an identification field 303. Theidentification field 303 contains information which allows identifyingresponses from a level three cache. Each line of the response table 301also has a purge field 304 which allows marking entries in the responsetable 301. The entries may be marked in order to signify that atranslation lookaside buffer purge process has been started while theseentries were in the response table 301. In addition, each line of theresponse table 301 includes a valid field 305. The valid field 305 canbe used to indicate that an entry in the response table 301 has not yetbeen successfully written to a level one cache of the computerprocessor. According to other embodiments of the invention, each line302 of the response table 301 may also feature additional fields.

FIG. 4 illustrates how the translation lookaside buffer purge processmay be performed according to an embodiment of the invention. A levelone cache 401 contains multiple cache lines. A purge unit 402 iteratesover all cache lines in order to invalidate the content of the cachelines. The invalidation of each cache line comprises three steps. In afirst step, the contents of the cache line are read. In a second step,it is evaluated whether the contents of the cache line have to beinvalidated. The contents of the cache line are invalidated in a thirdstep, if necessary. According to the embodiment as illustrated, this isperformed by a pipelined process. This means that data is read from andwritten to the level one cache simultaneously. The purge unit 402iterates through the level one cache from top to bottom. It has a readpointer and write pointer. The read pointer currently points to cacheline 404, while the write pointer currently points to cache line 403.Therefore, the purge unit reads data from cache line 404 and writes datato cache line 403. Cache line 403 has been read two cycles previously,whereupon it has been determined that this cache line has to beinvalidated. Cache line 405 has been read one cycle previously. Duringthe current cycle, it is being evaluated whether cache line 405 has tobe invalidated. During the subsequent cycle, the write pointer will beiterated so that it points to cache line 405. Therefore, cache line 405may be invalidated during the subsequent cycle.

All cache lines in section 406 of the level one cache have already beensubject to the translation lookaside buffer purge process. All cachelines in section 407 will be processed subsequently. Cache lines 403,404 and 405 are currently subject to the translation lookaside bufferpurge process. If an update operation of the cache update process writesto any of the cache lines, then the update operation will take priorityover the purge operation. The operations on cache lines 403, 404, and405 will therefore fail. This means that the purge operation will haveto be restored subsequently to an earlier state in order to ensure thatit is performed correctly. If the cache update process writes data froma level three cache to any of the cache lines in section 407, this isnot problematic because these fields will be handled by the purgeprocess subsequently. It is also of no concern if the cache updateprocess writes data to the cache lines in section 406 because, accordingto the present invention, the virtual address data will not be updatedin the level one cache while the purge process is under way.

FIG. 5 illustrates how conflicts between a translation lookaside bufferpurge process and a cache update process can be resolved according to anembodiment of the invention. A level one cache 501 containing multiplecache lines has been subject to a translation lookaside buffer purgeprocess by a purge unit 502. In a previous clock cycle, a read pointerof the purge unit 502 pointed to cache line 503, and a write pointerpointed to cache line 504. The write pointer has now been iterated andtherefore points to cache line 505. During the previous cycle, a writeoperation by the translation lookaside buffer purge process was supposedto be performed on cache line 504. However, at the same time, a writeoperation by the cache update process was also performed on cache line504. Therefore, a write conflict occurred between write operations ofthe translation lookaside buffer purge process and the cache updateprocess. Operations by the cache update process take precedence overoperations by the translation lookaside buffer purge process. Therefore,it was not possible to properly invalidate cache line 504.

In order to ensure that cache line 504 is invalidated correctly, theread pointer of the purge unit is reset to the location of the cacheline which was last written to by the translation lookaside buffer purgeprocess, that is, cache line 504. This means that cache line 504 can nowbe read again and it can be determined whether its contents, which havebeen updated during the previous cycle, will have to be invalidated.This means that the translation lookaside buffer purge process is rolledback.

It is an advantage of this method that no full roll-back of thetranslation lookaside buffer purge process has to be performed. Only fewof the operations of the translation lookaside buffer purge process haveto be performed again if a conflict occurs.

The flowchart of FIG. 6 shows a method for performing a translationlookaside buffer purge with concurrent cache updates according to anembodiment of the invention. In a start step 601, a translationlookaside buffer purge process is started. The translation lookasidebuffer purge process is started by an external entity and may betriggered when virtual addresses become invalid and therefore also needto be invalidated in a level one cache. A purge unit is responsible forperforming the translation lookaside buffer purge process. In a firstnotification step 602, the purge unit sets a REQ signal to the value of‘1’ in order to indicate that the translation lookaside buffer purgeprocess is active. In a marking step 603, the purge unit then marks allentries in the response table as purged. This may be achieved by settinga purge field in all entries in the response table. In a purge operationstep 604, one step of a pipelined purge process is executed. This meansthat data is read from a cache line in the level one cache and thatanother cache line in the level one cache is invalidated if necessary.In a decision step 605, the purge unit checks whether a GNT signal has avalue of ‘0’. The GNT signal is generated by an arbitration unit. TheGNT signal is set to ‘0’ whenever there is a conflict between the cacheupdate process and the translation lookaside buffer purge process. Ifthis is the case, then a value of a read pointer of the purge unit isassigned a value of a write pointer of the purge unit in a rollback step606. The method is then resumed at the purge operation step 604.

If there is no write conflict, then a completion evaluation step 607 isperformed. It is checked whether the purge unit has fully iteratedthrough the level one cache. If this is the case, the method reaches thesecond notification step 608, wherein the REQ signal is set to ‘0’. Thisnotifies the arbitration unit of the fact that the translation lookasidebuffer purge process is no longer active.

The flowchart of FIG. 7 shows a method for performing a translationlookaside buffer purge with concurrent cache updates according anembodiment of the invention. The tasks from the flowchart in FIG. 7 maybe performed concurrently to the tasks as shown in the flowchartaccording to FIG. 6. In an initial step 701, a request to retrieve datafrom a level three cache is accepted. The request may be triggeredexternally, for example by a processor core which requests data. In anentry step 702, the request is entered into a response table. Theresponse table can be used to track the current state of the request. Ina wait step 703, an update unit waits for a response from the levelthree cache. The update unit is responsible for writing data which hasbeen successfully retrieved from the level three cache to the level onecache and also to a level two cache. In a purge evaluation step 704, aresponse has been received from the level three cache. It is thenevaluated whether a purge field of the corresponding entry in theresponse table has been set. If the purge field has been set, then theupdate unit writes data from the level three response to a data field inthe level one cache in update step 705. However, the content of avirtual address field in the same address line is left as-is.

This ensures that virtual address fields are not updated in the levelone cache while a translation lookaside buffer purge process is active.This is particularly relevant in so far as it prevents potentiallyinvalid address data from being written to the level one cache. Forinstance, if invalid virtual address data is written to a section of thelevel one cache which has already been handled by the translationlookaside buffer purge process, for example into section 406 as shown inFIG. 4, then invalid virtual address data would remain in the level onecache after completion of the translation lookaside buffer purgeprocess. If the purge field is not set, then both data and virtualaddress may safely be written to the level one cache, see update step706. After either the update step 705 or the update step 706 has beencompleted, the update unit performs a clearing step 707 in which a validfield in the response table is cleared. This indicates that data hasbeen received in response to a request to the level three cache and acorresponding cache update in the level one cache has been completedsuccessfully.

FIG. 8 shows a digital timing diagram of both a REQ and a GNT signalline according to an embodiment of the invention. These signal linesconnect a purge unit with an arbitration unit. Initially, both REQ andGNT have a value of ‘0’. The translation lookaside buffer purge processis then activated, which causes the purge unit to set REQ to ‘1’ (802).In response, the arbitration unit sets GNT to ‘1’ (804), indicating tothe purge unit that currently, no data is being updated in the level onecache. A short time later, an update operation of the cache updateprocess is started and there is a collision with the translationlookaside buffer purge process, and therefore the arbitration unit setsGNT to ‘0’ (806). The purge unit can then perform a rollback to aprevious state. After the cache update process has been completed, thearbitration unit sets GNT to ‘1’ again (808). Afterwards, thetranslation lookaside buffer purge process finishes, and therefore thepurge unit sets REQ to ‘0’ (810). The arbitration unit responds by alsosetting GNT to ‘0’ (812).

FIG. 9 depicts a block diagram of components of computer 900 inaccordance with an illustrative embodiment of the present invention. Itshould be appreciated that FIG. 9 provides only an illustration of oneimplementation and does not imply any limitations with regard to theenvironments in which different embodiments may be implemented. Manymodifications to the depicted environment may be made.

As depicted, the computer 900 includes communications fabric 902, whichprovides communications between computer processor(s) 904, memory 906,persistent storage 908, communications unit 912, and input/output (I/O)interface(s) 914. Communications fabric 902 can be implemented with anyarchitecture designed for passing data and/or control informationbetween processors (such as microprocessors, communications and networkprocessors, etc.), system memory, peripheral devices, and any otherhardware components within a system. For example, communications fabric902 can be implemented with one or more buses.

Memory 906 and persistent storage 908 are computer-readable storagemedia. In this embodiment, memory 906 includes random access memory(RAM) 916 and cache memory 918. In general, memory 906 can include anysuitable volatile or non-volatile computer-readable storage media.

One or more programs may be stored in persistent storage 908 for accessand/or execution by one or more of the respective computer processors904 via one or more memories of memory 906. In this embodiment,persistent storage 908 includes a magnetic hard disk drive.Alternatively, or in addition to a magnetic hard disk drive, persistentstorage 908 can include a solid state hard drive, a semiconductorstorage device, read-only memory (ROM), erasable programmable read-onlymemory (EPROM), flash memory, or any other computer-readable storagemedia that is capable of storing program instructions or digitalinformation.

The media used by persistent storage 908 may also be removable. Forexample, a removable hard drive may be used for persistent storage 908.Other examples include optical and magnetic disks, thumb drives, andsmart cards that are inserted into a drive for transfer onto anothercomputer-readable storage medium that is also part of persistent storage908.

Communications unit 912, in these examples, provides for communicationswith other data processing systems or devices. In these examples,communications unit 912 includes one or more network interface cards.Communications unit 912 may provide communications through the use ofeither or both physical and wireless communications links.

I/O interface(s) 914 allows for input and output of data with otherdevices that may be connected to computer 900. For example, I/Ointerface 914 may provide a connection to external devices 920 such as akeyboard, keypad, a touch screen, and/or some other suitable inputdevice. External devices 920 can also include portable computer-readablestorage media such as, for example, thumb drives, portable optical ormagnetic disks, and memory cards. Software and data used to practiceembodiments of the present invention can be stored on such portablecomputer-readable storage media and can be loaded onto persistentstorage 908 via I/O interface(s) 914. I/O interface(s) 914 also connectto a display 922.

Display 922 provides a mechanism to display data to a user and may be,for example, a computer monitor.

The programs described herein are identified based upon the applicationfor which they are implemented in a specific embodiment of theinvention. However, it should be appreciated that any particular programnomenclature herein is used merely for convenience, and thus theinvention should not be limited to use solely in any specificapplication identified and/or implied by such nomenclature.

The flowchart and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof code, which comprises one or more executable instructions forimplementing the specified logical function(s). It should also be notedthat, in some alternative implementations, the functions noted in theblock may occur out of the order noted in the figures. For example, twoblocks shown in succession may, in fact, be executed substantiallyconcurrently, or the blocks may sometimes be executed in the reverseorder, depending upon the functionality involved. It will also be notedthat each block of the block diagrams and/or flowchart illustration, andcombinations of blocks in the block diagrams and/or flowchartillustration, can be implemented by special purpose hardware-basedsystems that perform the specified functions or acts, or combinations ofspecial purpose hardware and computer instructions.

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Smalltalk, C++ or the like, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computeror entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration, but are not intendedto be exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the invention.The terminology used herein was chosen to optimal explain the principlesof the embodiment, the practical application or technical improvementover technologies found in the marketplace, or to enable others ofordinary skill in the art to understand the embodiments disclosedherein.

What is claimed is:
 1. A computer program product for purging atranslation lookaside buffer concurrently with cache updates in acomputer system with a translation lookaside buffer and a primary cachememory having a first cache line that contains a virtual address fieldand a data field, comprising a computer readable storage medium havingstored thereon program instructions programmed to perform: initiating atranslation lookaside buffer purge process; initiating a cache updateprocess; determining that the translation lookaside buffer purge processand the cache update process each perform a write operation to the firstcache line concurrently; in response to determining that the translationlookaside buffer purge process and the cache update process each performa write operation to the first cache line concurrently: overwriting, bythe cache update process, the data field of the first cache line of theprimary cache memory, restoring the translation lookaside buffer purgeprocess from a current state to an earlier state, and restarting thetranslation lookaside buffer process from the earlier state.
 2. Thecomputer program product of claim 1, wherein the translation lookasidebuffer purge process comprises program instructions programmed toperform: reading data from the first cache line of the primary cachememory; determining that data in the first cache line does not conformto the current state of the translation lookaside buffer; and inresponse to determining that data in the cache line does not conform tothe current state of the translation lookaside buffer, invalidating thecache line.
 3. The computer program product of claim 1, wherein thetranslation lookaside buffer purge process comprises programinstructions programmed to perform: reading data from the first cacheline; writing data to a second cache line; wherein in reading data fromthe first cache line and writing data to the second cache line areconducted concurrently in a pipelined manner.
 4. The computer programproduct of claim 1, wherein restoring the translation lookaside bufferpurge process to an earlier state comprises program instructionsprogrammed to perform setting a value of a read pointer of thetranslation lookaside buffer purge process to a value of a write pointerof the translation lookaside buffer purge process.
 5. The computerprogram product of claim 1, further comprising program instructionsprogrammed to perform: storing a plurality of outstanding writeoperations including a first outstanding write operation, of the cacheupdate process, as a respectively corresponding plurality of entriesincluding a first entry, in a response table, where the first entrycorresponds to the first outstanding write operation; and in response toinitiating the translation lookaside buffer purge process, marking thefirst entry in the response table; determining that the first entry inthe response table is marked; in response to determining that the firstentry in the response table is marked, preventing the cache updateprocess from overwriting a virtual address field of a cache linecorresponding to the first entry in the response table.
 6. The computerprogram product of claim 1, wherein: the cache update process includesprogram instructions programmed to perform updating a secondary cachememory, and subsequent to the translation lookaside buffer purge processand the cache update process each performing a write operation to theprimary cache memory concurrently, program instructions programmed toperform overwriting, by the cache update process, a data field in acache line of the secondary cache memory the program instructions notbeing programmed to perform overwriting an address field of the cacheline.
 7. The computer program product of claim 1, wherein the cacheupdate process further comprises program instructions programmed toperform: retrieving data which is to be written to the primary cachememory from a tertiary cache memory.
 8. The computer program product ofclaim 1, further comprising program instructions programmed to perform:handling, by a purge unit, the translation lookaside buffer purgeprocess; and in response to the translation lookaside buffer purgeprocess becoming active, notifying, by the purge unit, an arbitrationunit, that the translation lookaside buffer purge process is active. 9.The computer program product of claim 1, further comprising programinstructions programmed to perform: handling access to the primary cachememory, by an arbitration unit; in response to an access conflict to theprimary cache memory occurring between the translation lookaside bufferpurge process and the cache update process, notifying a purge unit thatthat the access conflict has occurred.
 10. The computer program productof claim 1, further comprising program instructions programmed toperform: handling, by a purge unit, the translation lookaside bufferpurge process; marking, by the purge unit, a first entry in a responsetable that stores outstanding write operations of the cache updateprocess; and determining that the first entry in the response table ismarked, the first entry corresponding to a first cache line; in responseto determining that the first entry in the response table is marked,preventing the cache update process from overwriting a virtual addressfield of the first cache line.
 11. A computer system for purging atranslation lookaside buffer concurrently with cache updates in acomputer system with a translation lookaside buffer and a primary cachememory having a first cache line that contains a virtual address fieldand a data field, comprising: a processor(s) set; and a computerreadable storage medium; wherein: the processor set is structured,located, connected and/or programmed to run program instructions storedon the computer readable storage medium; and the program instructionsinclude instructions programmed to perform: initiating a translationlookaside buffer purge process; initiating a cache update process;determining that the translation lookaside buffer purge process and thecache update process each perform a write operation to the first cacheline concurrently; in response to determining that the translationlookaside buffer purge process and the cache update process each performa write operation to the first cache line concurrently: overwriting, bythe cache update process, the data field of the first cache line of theprimary cache memory, restoring the translation lookaside buffer purgeprocess from a current state to an earlier state, and restarting thetranslation lookaside buffer process from the earlier state.
 12. Thecomputer system of claim 11, wherein the translation lookaside bufferpurge process comprises program instructions programmed to perform:reading data from the first cache line of the primary cache memory;determining that data in the first cache line does not conform to thecurrent state of the translation lookaside buffer; and in response todetermining that data in the cache line does not conform to the currentstate of the translation lookaside buffer, invalidating the cache line.13. The computer system of claim 11, wherein the translation lookasidebuffer purge process comprises program instructions programmed toperform: reading data from the first cache line; writing data to asecond cache line; wherein in reading data from the first cache line andwriting data to the second cache line are conducted concurrently in apipelined manner.
 14. The computer system of claim 11, wherein restoringthe translation lookaside buffer purge process to an earlier statecomprises program instructions programmed to perform setting a value ofa read pointer of the translation lookaside buffer purge process to avalue of a write pointer of the translation lookaside buffer purgeprocess.
 15. The computer system of claim 11, further comprising programinstructions programmed to perform: storing a plurality of outstandingwrite operations including a first outstanding write operation, of thecache update process, as a respectively corresponding plurality ofentries including a first entry, in a response table, where the firstentry corresponds to the first outstanding write operation; and inresponse to initiating the translation lookaside buffer purge process,marking the first entry in the response table; determining that thefirst entry in the response table is marked; in response to determiningthat the first entry in the response table is marked, preventing thecache update process from overwriting a virtual address field of a cacheline corresponding to the first entry in the response table.
 16. Thecomputer system of claim 11, wherein: the cache update process includesprogram instructions programmed to perform updating a secondary cachememory, and subsequent to the translation lookaside buffer purge processand the cache update process each performing a write operation to theprimary cache memory concurrently, program instructions programmed toperform overwriting, by the cache update process, a data field in acache line of the secondary cache memory the program instructions notbeing programmed to perform overwriting an address field of the cacheline.
 17. The computer system of claim 11, wherein the cache updateprocess further comprises program instructions programmed to perform:retrieving data which is to be written to the primary cache memory froma tertiary cache memory.
 18. The computer system of claim 11, furthercomprising program instructions programmed to perform: handling, by apurge unit, the translation lookaside buffer purge process; and inresponse to the translation lookaside buffer purge process becomingactive, notifying, by the purge unit, an arbitration unit, that thetranslation lookaside buffer purge process is active.
 19. The computersystem of claim 11, further comprising program instructions programmedto perform: handling access to the primary cache memory, by anarbitration unit; in response to an access conflict to the primary cachememory occurring between the translation lookaside buffer purge processand the cache update process, notifying a purge unit that that theaccess conflict has occurred.
 20. The computer system of claim 11,further comprising program instructions programmed to perform: handling,by a purge unit, the translation lookaside buffer purge process;marking, by the purge unit, a first entry in a response table thatstores outstanding write operations of the cache update process; anddetermining that the first entry in the response table is marked, thefirst entry corresponding to a first cache line; in response todetermining that the first entry in the response table is marked,preventing the cache update process from overwriting a virtual addressfield of the first cache line.